package com.sushe.dao;


import com.sushe.domain.domitory;

import java.util.List;

/**
 * @author PanYue
 * @createTime 2022-04-06 10:46
 * 宿舍管理
 */
public interface domitoryDao {
    //private int id;
    //private building buildingID;
    //private String name;
    //private String type;
    //private String number;
    //private String tel;

    public List<domitory> selectAll();

    /**
     * 根据楼宇名称查询
     * @return
     */
    public List<domitory> selectByName(String name);

    /**
     * 根据电话或者寝室号查询
     * @param domitory
     * @return
     */
    public List<domitory> selectLike(domitory domitory);

    public boolean insertOne(domitory domitory);

    public boolean updateOne(domitory domitory);

    public void deleteOneById(int id);
}
